package com.mooc.yohoshop.ui.seckill;

import com.mooc.yohoshop.ApiService;
import com.mooc.yohoshop.entity.BaseEntity;
import com.mooc.yohoshop.network.BaseRepository;
import com.mooc.yohoshop.network.HttpFactory;
import com.mooc.yohoshop.network.HttpType;
import java.util.HashMap;
import io.reactivex.Observable;

public class SeckillRepo extends BaseRepository {

    //获取秒杀列表
    Observable<BaseEntity>requestSecKill(HashMap map){
        return convertObservable(HttpFactory.factory(HttpType.SIGNTYPE).getRetrofit()
                .create(ApiService.class).requestSecKill(createBody(map)));
    }

}
